import App from './App'
// import wx from 'weixin-js-sdk'
// #ifndef VUE3
import Vue from 'vue'
// import { weChatAuth } from './utils/auth'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  // app.config.globalProperties.$weChatAuth = weChatAuth
  return {
    app
  }
}
// #endif



// if (/(Android)/i.test(navigator.userAgent)) {
//     Vue.prototype.sdk = jWeixin;
// }
// if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
//     Vue.prototype.sdk = wx;
// }


